import moment from 'moment'
const formatTime = (time) => {
  moment.locale('zh-cn')
  return moment(time).from(new Date())
}
export default formatTime
